Skip to content

Main#2

Open
PrinceAsiedu wants to merge 4 commits intoGreenstand:masterfrom
PrinceAsiedu:main
Open

Main#2
PrinceAsiedu wants to merge 4 commits intoGreenstand:masterfrom
PrinceAsiedu:main

Conversation

@PrinceAsiedu
Copy link

Requesting change for client. Pub-sub functions updated and documentation added

@dadiorchen dadiorchen requested a review from dagmawig October 12, 2024 10:14
@dagmawig
Copy link
Collaborator

@PrinceAsiedu aiopg seems less active library compared to the psycopg library. I believe we should select psycopg library for connecting with postgres DB. @dadiorchen what do you think?

@PrinceAsiedu
Copy link
Author

PrinceAsiedu commented Oct 17, 2024

Psycopg is a synchronous Postgresql adapter while AIOPG is the opposite of that. Both are suited for different use cases. While aiopg is asynchronous, Psycopg isn't. Aiopg is also built on top of Psycopg

I believe our use case requires us to use a library that leans toward asynchronous operations. I stand to be corrected though

@dagmawig
Copy link
Collaborator

Psycopg is a synchronous Postgresql adapter while AIOPG is the opposite of that. Both are suited for different use cases. While aiopg is asynchronous, Psycopg isn't. Aiopg is also built on top of Psycopg

I believe our use case requires us to use a library that leans toward asynchronous operations. I stand to be corrected though

Psycopg allows async opration. Check out this documentation. https://www.psycopg.org/psycopg3/docs/advanced/async.html

I have actually built the functions and tested them. I will add a PR here and you can take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants